package com.hardware.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final Long LOGIN_USER_TTL = 36000L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    public static final String CACHE_SALE_KEY = "cache:sale:";
    public static final String CACHE_CATEGORY_CUSTOMER_KEY = "cache:category:customer";
    public static final String CACHE_CATEGORY_SHOP_KEY = "cache:category:shop";
    public static final String CACHE_CATEGORY_SUPPLIER_KEY = "cache:category:supplier";
    public static final String CACHE_ADDRESS_KEY = "cache:address";
    public static final String CACHE_CUSTOMER_KEY = "cache:customer";
    public static final String CACHE_EMPLOYEE_KEY = "cache:employee";
    public static final String CACHE_NAVIGATION_KEY = "cache:navigation";
    public static final String CACHE_ORDER_KEY = "cache:order";
    public static final String CACHE_SHOPPINGCART_KEY = "cache:shoppingcart";
    public static final String CACHE_STOCK_KEY = "cache:stock";
    public static final String CACHE_SUPPLIER_KEY = "cache:supplier";

    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;

    public static final String SECKILL_STOCK_KEY = "seckill:stock:";
    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FEED_KEY = "feed:";
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";
    public static final String CACHE_SHOPTYPE_KEY = "cache:shoptype:";
}
